package cn.gson.springboot.model.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;

@Mapper
public interface ChufangMapper {
	// 查询所有药品
	public List<Map<String, Object>> cfsy();
	// 模糊查询处方药品
		public List<Map<String, Object>> cfmhsy(@Param("prescriptionId")String prescriptionId);
		// 模糊查询部门药品
				public List<Map<String, Object>> bmmhcx(@Param("invoiceId")String invoiceId);
	// 部门所有药品
	public List<Map<String, Object>> bmsy();

	// 查询处方详情
	public List<Map<String, Object>> cfxq(int a);

	// 查询部门详情
	public List<Map<String, Object>> bmxq(int a);

	public void addAoumnt(@Param("did") Integer did, @Param("drugId") Integer drugId, @Param("aoumnt") Integer aoumnt);
	
	public void addKsKunCun(@Param("did") Integer did, @Param("drugId") Integer drugId, @Param("aoumnt") Integer aoumnt);
	
	public JSONArray findKsKunCun(@Param("did") Integer did, @Param("drugId") Integer drugId);
}
